package com.color.admin.common.core.page;

/**
 * @author HaiQiu
 * @date 2021/11/18
 * 分页请求工具
 */
public class PageRequest<T> extends Page{

    /**
     * 分页请求查询参数
     */
    private T params;

    public PageRequest(T params){
        super();
        this.params = params;
    }

    public PageRequest(){
        super();
    }

    public PageRequest(int pageIndex,int pageSize){
        super(pageIndex,pageSize);
    }

    public PageRequest(int pageIndex,int pageSize,T params){
        super(pageIndex,pageSize);
        this.params = params;
    }

    public T getParams() {
        return params;
    }

    public void setParams(T params) {
        this.params = params;
    }

    @Override
    public String toString() {
        return "PageRequest{" +
                "pageIndex=" + pageIndex +
                ", pageSize=" + pageSize +
                ", params=" + params +
                '}';
    }
}
